package com.xiaoyang.ssyx.client.user;

import com.xiaoyang.ssyx.vo.user.LeaderAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @AUTHOR XiaoYang
 * @DATE 2023/6/28-20:14
 * @DESCRIPTION TODO
 */
@FeignClient("service-user")
public interface UserFeignClient {

    //根据用户id获取提货点地址信息
    @GetMapping("/api/user/leader/inner/getUserAddressByUserId/{userId}")
    LeaderAddressVo getUserAddressByUserId(@PathVariable(value = "userId") Long userId);

}
